package request

import (
	utils "hft/Http/Utils"
)

type LouPan struct {
	ID              int
	Sort            int
	NameId          int     `json:"nameId"`
	Name            string  `json:"name"`
	Address         string  `json:"address"`
	MaxArea         int     `json:"maxArea"`
	MinArea         int     `json:"minArea"`
	ReferencePrice  int     `json:"referencePrice"`
	Cover           string  `json:"cover,omitempty"`
	OpenTime        int     `json:"openTime"`
	Region          int     `json:"region"`
	Longitude       float64 `json:"longitude"`
	Latitude        float64 `json:"latitude"`
	Years           string  `json:"years"`
	Status          int     `json:"status"`
	GetRoomTime     int     `json:"getRoomTime"`
	Grounding       int     `json:"grounding"`
	Developer       string  `json:"developer"`
	SellPhone       string  `json:"-"`
	License         string  `json:"license"`
	FloorArea       float32 `json:"floorArea"`
	BuildArea       float32 `json:"buildArea"`
	BuildNum        int     `json:"buildNum"`
	UserNum         string  `json:"userNum"`
	ParkingSpace    string  `json:"parkingSpace"`
	VolumeRate      float32 `json:"volumeRate"`
	GreeningRate    float32 `json:"greeningRate"`
	PropertyCost    string  `json:"propertyCost"`
	PropertyCompany string  `json:"propertyCompany"`
	Furnish         string  `json:"furnish"`
	PropertyUse     []int   `json:"propertyUse"`
	Tag             []int   `json:"tag"`
	Disadvantage    []int   `json:"disadvantage"`
	RoomType        []int   `json:"roomType,omitempty"`
	Tese            []int   `json:"tese"`
}

type LouPanSearch struct {
	Region    int `form:"region" json:"region"`
	Grounding int `form:"grounding" json:"grounding"`
	IsAudit   int `form:"isAudit" json:"isAudit"`
	Status    int `form:"status" json:"status"`
}

type LouPanLike struct {
	Name string `form:"name"`
}

type LouPaPaginate struct {
	LouPanSearch
	LouPanLike
	utils.Page
	Base
}
